import request from '@/utils/request'

// 查询短信模版变量列表
export function listVariable(query) {
  return request({
    url: '/Sms/variable/list',
    method: 'get',
    params: query
  })
}

// 查询短信模版变量详细
export function getVariable(variableId) {
  return request({
    url: '/Sms/variable/' + variableId,
    method: 'get'
  })
}

// 新增短信模版变量
export function addVariable(data) {
  return request({
    url: '/Sms/variable',
    method: 'post',
    data: data
  })
}

// 修改短信模版变量
export function updateVariable(data) {
  return request({
    url: '/Sms/variable',
    method: 'put',
    data: data
  })
}

// 删除短信模版变量
export function delVariable(variableId) {
  return request({
    url: '/Sms/variable/' + variableId,
    method: 'delete'
  })
}
